#include <bits/stdc++.h>
    using namespace std;

int main() {
  char c;
  while ((c = getchar()) != EOF) {
    if (c == '2')
      putchar(c);
  }
  return 0;
}